<template>
	<view class="account">
		<image class="a_img" src="https://sm.2sxzw.com/mgmg/jiabin01/mine/account-error-01.png" mode=""></image>
		<text class="t_e">账号异常</text>
		<view class="v_a">
			<text class="t_a">账号ID：{{uid}}</text>
			<text class="t_copy" @click="onCopyClick(uid)">复制</text>
		</view>
		<button class="b_kefu" @click="onKefuClick">联系客服</button>
	</view>
</template>

<script>
	import {
		getKefuUrl,
	} from '@/src/utils/utils.js';
	export default {
		data() {
			return {
				uid: null
			};
		},
		onLoad({uid}) {
			this.uid = uid
		},
		methods:{
			onKefuClick(){
				getKefuUrl();
			},
			onCopyClick(t){
				let _this =this
				uni.setClipboardData({
					data: t,
					showToast: false,
					success: function() {
						_this.$showToast('复制成功')
					}
				});
			}
		}
		
	}
</script>

<style lang="scss">
	@import "AccountError.scss"
</style>